//
//  AddressStore.m
//  NewPro
//
//  Created by RYX on 2019/3/28.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import "AddressStore.h"

@implementation AddressStore

- (void)getAddressLocationSuccess:(void(^)(NSDictionary *result))success Failure:(void(^)(NSError *error))failure{
    
    NSString *url = @"http://120.27.239.20:8080/api/area/test";
    [HttpTool postUrlWithString:url parameters:nil success:^(id responseObject) {
        
        NSError *error = [HttpTool inspectError:responseObject];
        if (error == nil) {
            
            success(responseObject);
        }else{
            failure(error);
        }
        
    } failure:^(NSError *error) {
       
        failure(error);
    }];
}
@end
